<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>状态设置</title>
<#include "/pages/include/head.ftl" />
<#import "/pages/import/images.ftl" as img />
</head>

<body>
<div class="popwindow-title">状态设置</div>
<div class="popwindow-container">
<@s.form id="saveform" action="">
<@s.hidden id="entityid" name="entity.id" value="${Request.id}"/>
<table cellpadding="0" cellspacing="0" class="form-2column">
  <tr>
      <th height="50">有效状态：</th>
      <td ><input type="radio" name="entity.status" value="ENABLED">
        启用
        <input type="radio" name="entity.status" value="DISABLED">
        停用</td>
    </tr>
</table>
</@s.form>
</div>
<div class="popwindow-btn-area">
<div class="btn-order" onclick="postdata()">
     <ul>
     <li class="left-normal" id="btn1_11"></li>
     <li class="middle-normal" id="btn1_12" onmouseover="btn_change_over(1)" onmouseout="btn_change_out(1)" onblur="btn_change(1)"><img src="${contextPath}/images/ico16/ico-ok.gif" alt="" />确 定</li>
     <li class="right-normal" id="btn1_13"></li>
     </ul>
</div>
<div class="btn-order" onclick="windowClose()">
     <ul>
     <li class="left-normal" id="btn1_31"></li>
     <li class="middle-normal" id="btn1_32" onmouseover="btn_change_over(3)" onmouseout="btn_change_out(3)" onblur="btn_change(3)"><img src="${contextPath}/images/ico16/ico-cancel.gif" alt="" />取 消</li>
     <li class="right-normal" id="btn1_33"></li>
     </ul>
</div>
</div>

<script type="text/javascript">
function postdata(){  
$.ajax({                                                
    type: "POST",                                     
    url: "setStatus.action",                                    
    data: $("#saveform").serialize(),
    success: function(msg){
	   windowClose();
	   goBack();
    } 
}); 
}

function goBack(){
	window.open("list.action","main","");
}
</script>

</body>
</html>
